package com.etc.zzsys.util;

import com.etc.zzsys.entity.User;

public class Test {
	public static void main(String[] args) {
		String sql = "select * from user";
		PageData<User> data = BaseDao.getPage(sql, 2, 3, User.class);
		for (User u : data.getData()) {
			System.out.println(u);
		}
		System.out.println("当前页："+data.getPage());
		System.out.println("总页数："+data.getTotalPage());
		System.out.println("总记录数："+data.getTotal());
	}
}
